package com.example.entity;

import javax.persistence.*;

/**
 * @ClassName primaryStudent
 * @Description
 * @Author JY
 * @Date 2020/7/26 8:26
 **/
@Entity
@Table(name="t_priStudent")
@PrimaryKeyJoinColumn(name = "id")//每个表都生成一个与父类索引对联的ID列
public class PrimaryStudent extends Student{

    @Column(name = "tuition")
    private int tuition;
    @Column(name = "pocket_money")
    private int pocket_money;

    public PrimaryStudent() {
    }

    public int getTuition() {
        return tuition;
    }

    public void setTuition(int tuition) {
        this.tuition = tuition;
    }

    public int getPocket_money() {
        return pocket_money;
    }

    public void setPocket_money(int pocket_money) {
        this.pocket_money = pocket_money;
    }
}
